package com.itheima;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.context.ApplicationContext;
import sun.misc.BASE64Encoder;

@SpringBootTest
public class SpringBootTest2 {
    @Autowired
    private ApplicationContext context;

    //@Autowired
    //private BASE64Encoder encoder;

    @Test
    public void test1() {
        Object encoder = context.getBean("base64Encoder");
        System.out.println("encoder = " + encoder);
    }
}
